package com.dwxt.cdms.controller;

import com.dwxt.cdms.service.ZtService;
import com.dwxt.common.base.BaseResult;
import com.dwxt.cdms.base.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cdms/api")
public class ZtController {

    @Autowired
    private ZtService ztService;


    @RequestMapping("/selectWarningList")
    public BaseResult selectWarningList(@RequestParam(required = true) Integer type,Page page){
        return ztService.selectWarningList(type,page);
    }

}
